<template>
    <div>
        <!-- <AppItem v-model:title="title" @update:myEvent="title = $event"></AppItem> -->
        <AppItem v-model:name="name" v-model:age="age" v-model:gender="gender" 
        @update:name="name = $event" @update:age="age = $event" @update:gender="gender = $event">
    </AppItem>
    </div>
</template>

<script >
import AppItem from './components/AppItem.vue';
export default {
    components: { AppItem },
    data() {
        return {
            title: '这是一个标题',
            name: '张三',
            age: 22,
            gender: '男'
        }
    },
}
</script>